package cn.imvc.app.models;

import java.util.Collection;
import java.util.LinkedHashMap;
import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.security.access.ConfigAttribute;
import org.springframework.security.web.util.matcher.RequestMatcher;

import cn.imvc.app.entities.GoodsClass;
import cn.imvc.data.domain.ViewRequest;

public interface GoodsClassModel {

	LinkedHashMap<RequestMatcher,Collection<ConfigAttribute>> getRequestMap();
	
	Page<GoodsClass> find(ViewRequest viewRequest);
	
	String getGoodsClassTree();

	GoodsClass get(int id);

	GoodsClass save(int id, GoodsClass goodsClass);

	GoodsClass update(int classId, GoodsClass resource);

//	String delete(GoodsClass goodsClass);
	String delete(int id);
	String treeLookup();

	List<GoodsClass> getClassPath(int goodsClassId);
	String getClassPathStr(int goodsClassId);
}
